/*
*
*
*/
#include <stdio.h>

#define MAX_SIZE_OF_TX 20
static char txMemPool[MAX_SIZE_OF_TX];

void fun1(char *p)
{
  sprintf(p, "fun1 test!");
}

void fun2(char *p)
{
  sprintf(p, "fun2!");
}
void main()
{
  char *ptx = &txMemPool[0];
  char *test;
  printf("The size of txMemPool = %d\n ",sizeof(txMemPool));
  printf("The conten of txMemPool = %s\n", txMemPool);

  fun1(ptx);
  ptx = &txMemPool[0];
  fun2(ptx);
  printf("ptx = %s\n",ptx);
  test = ptx;
  sprintf(test,"this test!");
  printf("ptx = %s\n",ptx);
  
}